import fetch from '@/util/fetch.js'

export function listWaitHosting (data) {
    return fetch({
        url: '/reward-oms/list-wait-hosting',
        method: 'get',
        params: data
    })
}

export function listBid (data) {
    return fetch({
        url: '/reward-oms/list-bid',
        method: 'get',
        params: data
    })
}

export function listDone (data) {
    return fetch({
        url: '/reward-oms/list-done',
        method: 'get',
        params: data
    })
}

export function allList (data) {
    return fetch({
        url: '/reward-oms/list',
        method: 'get',
        params: data
    })
}
// 设置项目专员
export function setSpecialist (data) {
    return fetch({
        url: '/reward-oms/set-specialist',
        method: 'post',
        data
    })
}
// 设置未托管原因
export function setNotHostingReason (data) {
    return fetch({
        url: '/reward-oms/set-not-hosting-bounty-reason',
        method: 'post',
        data
    })
}
// 获取跟进记录列表
export function followUpLogList (data) {
    return fetch({
        url: '/reward-oms/follow-up-log-list',
        method: 'get',
        params: data
    })
}
// 是否在主站显示
export function setVisible (data) {
    return fetch({
        url: '/reward-oms/set-visible',
        method: 'post',
        data
    })
}
// 设置为内部项目
export function setInternalProject (data) {
    return fetch({
        url: '/reward-oms/set-internal',
        method: 'post',
        data
    })
}
// 操作记录列表
export function operationLogList (data) {
    return fetch({
        url: '/reward-oms/operation-log-list',
        method: 'get',
        params: data
    })
}
// 报名信息列表
export function schemeList (data) {
    return fetch({
        url: '/reward-apply/scheme-list',
        method: 'get',
        params: data
    })
}
// 报名信息详情
export function getCaseDetail (data) {
    return fetch({
        url: '/reward-apply/detail',
        method: 'get',
        params: data
    })
}
// 新增跟进记录
export function addFollowLog (data) {
    return fetch({
        url: '/reward-oms/add-follow-up-log',
        method: 'post',
        data
    })
}
// 悬赏详情
export function getRewardDetail (data) {
    return fetch({
        url: '/reward-oms/detail',
        method: 'get',
        params: data
    })
}
// 项目/悬赏未托管原因列表
export function getNotHostingReason (data) {
    return fetch({
        url: '/project-config/not-hosting-reason-list',
        method: 'get',
        params: data
    })
}
// 关闭项目
export function managerCloseProject (data) {
    return fetch({
        url: '/project-oms/manager-close-project',
        method: 'post',
        data
    })
}
// 编辑上传
export function managerModify (data) {
    return fetch({
        url: '/project-oms/manager-modify',
        method: 'post',
        data
    })
}
